Drop private GtkAccessible api
authorMatthias Clasen <mclasen@redhat.com>
Thu, 14 Jul 2011 23:42:12 +0000 (19:42 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 14 Jul 2011 23:42:12 +0000 (19:42 -0400)
We no longer use factories anywhere.

gtk/Makefile.am
gtk/gtkaccessible.c
gtk/gtkaccessibleprivate.h [deleted file]

index 058fdc38e6c94caf6da110f5c17bcd2cebd5478f..cb6b4e5bf3146614a4889e50f6e0c279abea1699 100644 (file)
@@ -380,7 +380,6 @@ endif
 # GTK+ header files that don't get installed
 gtk_private_h_sources =                \
        gtkaccelgroupprivate.h  \
-       gtkaccessibleprivate.h  \
        gtkanimationdescription.h \
        gtkappchooserprivate.h  \
        gtkappchoosermodule.h   \
index ba1b206c163f7f9378b1594f6d7c4c15c1883b8e..25f1c94f544c3702ffbb5a1362509ef3b9f22a8e 100644 (file)
@@ -127,34 +127,3 @@ gtk_accessible_real_connect_widget_destroyed (GtkAccessible *accessible)
     g_signal_connect (priv->widget, "destroy",
                       G_CALLBACK (gtk_widget_destroyed), &priv->widget);
 }
-
-/*
- * _gtk_accessible_set_factory_type:
- * @widget_type: a #GtkWidget subtype
- * @factory_type: a #AtkObjectFactory subtype
- *
- * A wrapper around atk_registry_set_factory_type().
- *
- * Only installs the factory if accessibility is
- * enabled.
- */
-void
-_gtk_accessible_set_factory_type (GType widget_type,
-                                  GType factory_type)
-{
-  AtkObjectFactory *factory;
-  AtkRegistry *registry;
-  GType accessible_type;
-
-  /*
-   * Figure out whether accessibility is enabled by looking
-   * at the type of the accessible object which would be created
-   * for GtkWidget.
-   */
-  registry = atk_get_default_registry ();
-  factory = atk_registry_get_factory (registry, GTK_TYPE_WIDGET);
-  accessible_type = atk_object_factory_get_accessible_type (factory);
-  if (g_type_is_a (accessible_type, GTK_TYPE_ACCESSIBLE))
-    atk_registry_set_factory_type (registry, widget_type, factory_type);
-}
-
diff --git a/gtk/gtkaccessibleprivate.h b/gtk/gtkaccessibleprivate.h
deleted file mode 100644 (file)
index 6bf5a50..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-/* GTK - The GIMP Toolkit
- * Copyright (C) 2011 Red Hat, Inc.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free
- * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- */
-
-#ifndef __GTK_ACCESSIBLE_PRIVATE_H__
-#define __GTK_ACCESSIBLE_PRIVATE_H__
-
-#include "gtkaccessible.h"
-
-G_BEGIN_DECLS
-
-void     _gtk_accessible_set_factory_type (GType widget_type,
-                                           GType factory_type);
-
-G_END_DECLS
-
-#endif  /* __GTK_ACCESSIBLE_PRIVATE_H__ */